package server

import (
	"net/http"

	"github.com/gorilla/mux"
)

type HtpOption func(*HtpServer)

// Address with server address.
func Address(addr string) HtpOption {
	return func(s *HtpServer) {
		s.Addr = addr
	}
}

func HttpServer(srv *http.Server) HtpOption {
	return func(s *HtpServer) {
		s.Server = srv
	}
}

func HttpHandler(router *mux.Router) HtpOption {
	return func(s *HtpServer) {
		s.router = router
	}
}

func HttpServerName(name string) HtpOption {
	return func(s *HtpServer) {
		s.name = name
	}
}
